package org.oschina.api.manage.module.service;

import java.util.List;
import org.oschina.Module;
import org.oschina.api.BaseService;
import org.oschina.api.manage.module.dao.ModuleTypeDAO;
import org.oschina.api.manage.module.vo.ModuleTypeVo;
import org.oschina.security.annotation.Require;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ModuleTypeService extends BaseService {

	@Autowired
	private ModuleTypeDAO moduleTypeDAO;
	
	/**
	 * 返回
	 * @return
	 */
	@Require(authorization=Module.MODULE_2)
	public List<ModuleTypeVo> findVo()
	{
		return moduleTypeDAO.findVo();
	}
}